package com.example.chatbot.api.domain.zsxq;

import com.example.chatbot.api.domain.zsxq.model.aggregates.UnAnsweredQuestionsAggregates;

import java.io.IOException;

public interface IZsxqApi {
    /**
     * 用于获取 知识星球未回答的题目
     * @param groupId
     * @param cookie
     * @return
     * @throws IOException
     */
    UnAnsweredQuestionsAggregates queryUnAnsweredQuestionsTopicId(String groupId, String cookie) throws IOException;

    /**
     * 回答一个topic问题
     * @param groupId
     * @param cookie
     * @param topicId
     * @param text
     * @param silenced
     * @return
     * @throws IOException
     */
    boolean answer(String groupId,String cookie,String topicId,String text,boolean silenced) throws IOException;

}
